package com.reder.practice.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;

import java.util.Date;

/**
 * 视频表实体类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/20 16:05:06</p>
 */
@ApiModel("视频表实体类")
public class Video {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键，后台自动填充", example = "0")
    private Long id;

    /**
     * 视频属于哪个用户
     */
    @ApiModelProperty(value = "视频属于哪个用户", example = "0")
    private Long userId;

    /**
     * 视频播放次数
     */
    @ApiModelProperty(value = "视频播放次数，后台自动填充", example = "0")
    private Long playTimes;

    /**
     * 视频点赞次数
     */
    @ApiModelProperty(value = "视频点赞次数，后台自动填充", example = "0")
    private Long starTimes;

    /**
     * 视频评论次数
     */
    @ApiModelProperty(value = "视频评论次数，后台自动填充", example = "0")
    private Long commentTimes;

    /**
     * 视频简短描述
     */
    @ApiModelProperty("视频简短描述")
    private String description;

    /**
     * 视频存放路径
     */
    @ApiModelProperty("视频存放路径，后台自动填充")
    private String filePath;

    /**
     * 视频创建时间
     */
    @ApiModelProperty("视频创建时间，后台自动填充")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPlayTimes() {
        return playTimes;
    }

    public void setPlayTimes(Long playTimes) {
        this.playTimes = playTimes;
    }

    public Long getStarTimes() {
        return starTimes;
    }

    public void setStarTimes(Long starTimes) {
        this.starTimes = starTimes;
    }

    public Long getCommentTimes() {
        return commentTimes;
    }

    public void setCommentTimes(Long commentTimes) {
        this.commentTimes = commentTimes;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", playTimes=").append(playTimes);
        sb.append(", starTimes=").append(starTimes);
        sb.append(", commentTimes=").append(commentTimes);
        sb.append(", description=").append(description);
        sb.append(", filePath=").append(filePath);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}